import { createApp } from 'vue'
import App from './App.vue'
import router from "./router";
import store from './store';
import globalMixIn from '@/mixin/global';
import "normalize.css";//初始化样式
import "@/style/global.scss";//全局样式
import "@/style/element.scss";
import 'element-plus/dist/index.css' 

// 创建App实例
const app = createApp(App)

// 注册自定义指令
import { setupGlobDirectives } from '@/directives'
setupGlobDirectives(app)

// 导入自定义组件
// import areaSelect from '@/components/areaSelect.vue'
// app.component('areaSelect',areaSelect)

// 注册element 图标
import * as ElIconModules from '@element-plus/icons'
for(let iconName in ElIconModules){
  app.component(iconName,ElIconModules[iconName])
}

app.use(router).use(store).mixin(globalMixIn).mount('#app')
